import request from "@/libs/request";

const basePath = '/appcloud-builder-api' ;

export const apiUrls = {
	getGitBranchTree : basePath + '/appcloud/git/getGitBranchTree',
	getSvnBranchTree : basePath + '/appcloud/svn/getSvnBranchTree',
}


// 根据git地址获取分支信息
export async function getGitBranchTree(params){
	return request( apiUrls.getGitBranchTree, {
      method:'POST',
      body:params
  })
}

// 根据svn地址获取分支信息
export async function getSvnBranchTree(params){
	return request( apiUrls.getSvnBranchTree, {
      method:'POST',
      body:params
  })
}